package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 检验项详情-新对象 main_inspection_item_detail
 *
 * @author qijian
 * @date 2024-02-02
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_inspection_item_detail")
public class InspectionItemDetail extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "ID")
    private Long id;

    @Excel(name = "检验项id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "检验项id")
    private Long mainItemId;

    @Excel(name = "特性及要求")
    @ApiModelProperty(value = "特性及要求")
    private String inspectionName;

    @Excel(name = "下限值")
    @ApiModelProperty(value = "下限值")
    private String minValue;

    @Excel(name = "上限值")
    @ApiModelProperty(value = "上限值")
    private String maxValue;

    @Excel(name = "默认值")
    @ApiModelProperty(value = "默认值")
    private String defaultValue;

    @Excel(name = "是否自检,默认true")
    @ApiModelProperty(value = "是否自检,默认true")
    private Boolean isSelfCheck;

    @ApiModelProperty(value = "是否专检,默认true")
    private Boolean isSpecCheck;

    @Excel(name = "自检频次")
    @ApiModelProperty(value = "自检频次")
    private Long frequency;

    @Excel(name = "检测次数")
    @ApiModelProperty(value = "检测次数")
    private Long inspectionCount;

    @Excel(name = "专检频次")
    @ApiModelProperty(value = "专检频次")
    private Long specFrequency;

    //默认是文本类型, 当上限/下限/默认值 为 0/0/-1 时,为radio
    private Boolean isText;

}
